package com.maimao.mg.repository;

import com.maimao.model.cart.ShoppingCart;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author MaoLin Wang
 * @date 2021/1/10 5:09 下午
 */
public interface ShoppingCartRepository extends MongoRepository<ShoppingCart, Long> {

    ShoppingCart findByUserIdAndSkuId(Long userId, Long skuId);
}
